<?php
/*

___Canvas Includes______________________________________________

Files required to start the Canvas environment.

________________________________________________________________

*/

include_once('canvas-globals.php');

//if(is_admin() || is_canvas_ajax()) :
	include_once('canvas-install.php');
	include_once('canvas-xml.php');
	include_once('canvas-import_functions.php');
	include_once('canvas-export_functions.php');
	include_once('canvas-admin.php');
//endif;

include_once('Ink/ink.php');
include_once('canvas-stats.php');

$canvas_external_plugins = array();

// Include the Canvas plugins
function canvas_include_plugins() {
	$dir = CANVASPATH.'/plugins/';
	$files = scandirectory($dir);
	if($files) {
		foreach($files as $filename) {
			if(substr($filename, -3) == 'php') include_once($dir.$filename);
		}
	}

	$dir = TEMPLATEPATH.'/plugins/';
	$files = scandirectory($dir);
	if($files) {
		foreach($files as $filename) {
			if(substr($filename, -3) == 'php') include_once($dir.$filename);
		}
	}
}
?>